﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NextCMS.Models;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        PagesHelper pc=new PagesHelper();
        int SiteId = Convert.ToInt32(SiteSettingsHelper.GetSetting("DefaultSite", 0));
        PageModel pm = pc.GetByPageId(Convert.ToInt32(SiteSettingsHelper.GetSetting("HomePage", SiteId)));
        if (pm != null)
        {
            Response.Redirect(pm.FileName);
        }
        
    }
}